package com.zxy.controller.v2;

import com.zxy.service.v2.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: TODO
 * @Author: zhuxianyu
 * @Date: 2021/12/18 14:35
 * @Version: 1.0
 */
@Controller
@RequestMapping("/v2")
public class TeacherController {

    @Autowired
    private TeacherService teacherService;

    @RequestMapping(value = "/httpRequest")
    @ResponseBody
    public String httpRequest() {
        teacherService.httpRequest();
        return "httpRequest";
    }

}
